package com.gxuwz.PangGuangyao.business.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.PangGuangyao.business.dao.ExpeCataDAO;
import com.gxuwz.PangGuangyao.business.entity.ExpeCata;
import com.gxuwz.core.pagination.Result;
@Service("expeCataServiceImpl")
public class ExpeCataServiceImpl implements IExpeCataService{
	@Autowired
	ExpeCataDAO expeCataDAO;

	/**
	 * 根据条件查找分页
	 * @param ExpeCata 模型
	 * @param page 第几页
	 * @param row 长度
	 * @return
	 */
	@Override
	public Result<ExpeCata> find(ExpeCata ExpeCata, int page, int row) {
		return expeCataDAO.find(ExpeCata, page, row);
	}
	/**
	 * @return
	 * @author lw
	 * @date 2020.02.20
	 * @description:添加目录列表
	 */
	@Override
	public void add(ExpeCata expeCata) {
		expeCataDAO.add(expeCata);
	}
	@Override
	public void delete(ExpeCata expeCata) {
    expeCataDAO.delete(expeCata);
	}
	/**
	 * @return
	 * @author lw
	 * @date 2020.02.25
	 * @description:通过ecId查询实体
	 */
	@Override
	public ExpeCata findByecId(String ecId) {
		return   expeCataDAO.findByecId(ecId);
	}
	
	

}
